<script type="text/javascript" language="javascript" src="../../ui/js/file.js"></script>
<div class="content_title">文件管理</div>
<div>root</div>
<?php
	foreach($dir as $key => $year){
    	
        echo "<ul>";
        echo "<li>".$key."</li>";
    	foreach($year as $key1 => $date){
        	
            echo "<ul class='dir_date' >";
            echo "<li name='".$key.$key1."'>".$key1."</li>";
            echo "<ul class='file_image'>";
        	foreach($date as $item){
				$getsize = getimagesize($item['preview']);
				$imgsize['width'] =  (100/$getsize[1])*$getsize[0];
                echo "<li><a href='".$item['img']."' target='_blank'><img height='100px' width='".$imgsize['width']."s' src='".$item['preview']."' /></a></li>";
            }
           	echo "</ul>";
        	echo "</ul>";
        
        }
    	echo "</ul>";
    }
?>
<div class="delete">
	<div class="makesure">确定删除<span></span>的所有图片？</div>
    <input name="" class="sure" type="button" value="I'm sure" />
    <input class="wait" type="button" value="wait" />
</div>